#!/bin/bash
result=()
for ((num=100; num<=999; num++)); do
    hundreds=$((num / 100))
    tens=$(((num / 10) % 10))
    units=$((num % 10))
    cube_sum=$((hundreds**3 + tens**3 + units**3))
    if [ $cube_sum -eq $num ]; then
        result+=($num)  
    fi
done
echo "$(echo "${result[*]}" | tr ' ' ',')"
